<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.CreateStatusRegistroTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:panelGroup id="messagePanel" styleClass="ajustaListaMensagemErro"  layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="list"/>
            </h:panelGroup>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputLabel value="#{bundle.CreateStatusRegistroLabel_strId}" for="strId" />
                    <p:inputText id="strId" value="#{statusRegistroController.selected.strId}" title="#{bundle.CreateStatusRegistroTitle_strId}" required="true" requiredMessage="#{bundle.CreateStatusRegistroRequiredMessage_strId}"/>
                    <h:outputLabel value="#{bundle.CreateStatusRegistroLabel_strNm}" for="strNm" />
                    <p:inputText id="strNm" value="#{statusRegistroController.selected.strNm}" title="#{bundle.CreateStatusRegistroTitle_strNm}" />
                    <h:outputLabel value="#{bundle.CreateStatusRegistroLabel_strDs}" for="strDs" />
                    <p:inputText id="strDs" value="#{statusRegistroController.selected.strDs}" title="#{bundle.CreateStatusRegistroTitle_strDs}" />
                </h:panelGrid>
                <br />
                <h:commandLink action="#{statusRegistroController.create}" value="#{bundle.CreateStatusRegistroSaveLink}" />
                <br />
                <br />
                <h:commandLink action="#{statusRegistroController.prepareList}" value="#{bundle.CreateStatusRegistroShowAllLink}" immediate="true"/>
                <br />
                <br />
                <h:commandLink value="#{bundle.CreateStatusRegistroIndexLink}" action="/index" immediate="true" />
            </h:form>
        </ui:define>
    </ui:composition>

</html>
